<?php

namespace app\common\customer\model;

use app\common\config\logic\DictionaryLogic;
use app\common\config\model\ConfigStore;
use app\common\system\logic\UserLogic;
use think\model\concern\SoftDelete;

class UploadFile extends \think\Model
{
    protected $table = "tk_upload_file";
    use SoftDelete;
    protected $autoWriteTimestamp = true;
    protected $defaultSoftDelete = 0;


    // 创建人
    public function getUserAttr($value, $data)
    {
        $logic = new UserLogic();

        return $logic->getUser($data['user_id'], ['id', 'realname', 'status']);
    }
}
